import React from 'react';

// import login_bg from '@/assets/login.png';

import Crud from '@/pages/crud';

import styles from './UserLayout.less';



export type UserLayoutProps = {
  children: React.ReactNode
}

const UserLayout: React.FC<UserLayoutProps> = (props) => {
  const {
    children,
    // location = {
    //   pathname: '',
    // },
  } = props;


  return (
    <div className={styles.container}>

      <div className={styles.carousel}>

        <div className={styles.login_text}>金蜜数据可视化配置平台</div>
        <div className={styles.title}>你好</div>
      </div>

      <div className={styles.right_form}>
        {children}
      </div>
      <Crud />
    </div>
  );
};

export default UserLayout;
